package com.atguigu.builder.improve;

public class Client {
	public static void main(String[] args) {

		// 盖普通房子
		CommonHouse commonHouse = new CommonHouse();
		// 指挥者
		HouseDirector houseDirector = new HouseDirector(commonHouse);
		
		// 构建产品
		House house = houseDirector.constructHouse();
		
		//System.out.println("�������");
		
		System.out.println("--------------------------");
		//高楼
		HighBuilding highBuilding = new HighBuilding();
		//重置构建者
		houseDirector.setHouseBuilder(highBuilding);
		// 构建产品高楼
		houseDirector.constructHouse();
		
		
		
	}
}
